package kafka;

import org.apache.kafka.clients.consumer.OffsetAndMetadata;
import org.apache.kafka.common.TopicPartition;

public class offsett {
    private TopicPartition topicPartition;
    private OffsetAndMetadata offsetAndMetadata;
    public void setTopicPartition(TopicPartition topicPartition) {
        this.topicPartition = topicPartition;
    }

    public void setOffsetAndMetadata(OffsetAndMetadata offsetAndMetadata) {
        this.offsetAndMetadata = offsetAndMetadata;
    }

    public TopicPartition getTopicPartition() {
        return topicPartition;
    }

    public OffsetAndMetadata getOffsetAndMetadata() {
        return offsetAndMetadata;
    }

    @Override
    public String toString() {
        return "offsett{" +
                "topicPartition=" + topicPartition +
                ", offsetAndMetadata=" + offsetAndMetadata +
                '}';
    }
}
